The Application of Design Patterns to Develop Games for Mobile Devices using Java 2 Micro Edition

نویسندگان

  • Jeetendre Narsoo
  • Mohammad Sameer Sunhaloo
  • R. Thomas
چکیده

In this paper, we demonstrate the use of design patterns to develop games for mobile devices on the J2ME platform. We believe that the proposed idea will help J2ME game developers to write better re-usable code faster. We consider a single player Sudoku board game which is based on the model-view-controller architecture. The view is configured with a Game Controller Choice pattern so that different controllers can be selected. The view and the model implement the Game State Observer pattern. The Canvas drawing logic is created using the Drawing Template pattern, which ensures re-usability of the board size computation as well as provides a means for the programmer to implement game specific drawing functionalities. A generic undo method is provided using the Game Memento pattern. Setting of the current display is achieved through the Change Screen pattern. We note that the use of patterns in the Sudoku game makes it possible to cater for changes without breaking up the overall architecture of the game. By considering a downgraded version of the standard Soduko game, we show that patterns allow modifications to be made without opening up too many classes. We also show how the proposed design of the Sudoku game facilitates the design of other games.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Java is the Language of Choice for Creating Internet Services Applications for Wireless Devices

Java 2 Platform, Micro Edition (J2ME) is turning into a major platform for wireless application development. Compared with desktop and server-side application development, Java-based wireless development faces some unique challenges. For example, small wireless devices have little processing power, limited memory, short battery life, and unreliable network connections. To develop wireless appli...

متن کامل

Design and Implementation of SIP based VoIP Application for Mobile Devices using J 2 ME

Voice over Internet Protocol (VoIP) is a way to carry out a telephonic conversation over a data network. VoIP applications, with SIP and RTP, promise converged telecommunications and data services that are cheaper, more versatile and provide good voice quality as compared to traditional offerings. Although VoIP is widely used, VoIP on mobile devices is still in its infancy. Currently, there are...

متن کامل

Designing Wireless Enterprise Applications on Mobile Devices

Advancements in wireless technologies have made it possible to build wireless enterprise applications. These applications will give great impact in the workflow, work efficiency, and user convenience, which will result in increasing a company’s revenue. Enterprise applications calls for challenging requirements such as two-way data transfer, complex business logic, multiple users, and the abili...

متن کامل

Security Analysis of Wireless Java

This paper represents a careful study of the security aspects of Java 2 Micro-Edition (J2ME) Connected Limited Device Configuration (CLDC). This Java platform is intended for resource-constrained devices, with the purpose of expanding the range of applications available for these devices, by enabling them to run Java programs. Consequently, malicious code would pose a threat to the security and...

متن کامل

Realizing Location-Based Push-Services on Mobile Devices

This paper describes how location-based push-services can be realized on mobile devices. Such services allow to automatically deliver locationrelevant information to mobile users, thus enabling new application scenarios. The paper presents examples of these new application scenarios and introduces a generic software architecture, which allows to integrate arbitrary ways of tracking the user’s l...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Journal of Object Technology

دوره 8  شماره 

صفحات  -

تاریخ انتشار 2009